<?php
namespace voxfa;

class Voxfa {
	
	public static function autoload($className){
		$base = dirname(__FILE__); // ...voxfa\src
		$sp = explode("\\",$className);
		array_shift($sp);
		$file = implode(DIRECTORY_SEPARATOR,$sp).".php";
		$fileName = $base.DIRECTORY_SEPARATOR.$file;
		
		if (file_exists($fileName))
			require_once $fileName;
		
	}
	
}

spl_autoload_register(array(__NAMESPACE__."\\Voxfa","autoload"));